#define X_FILE						0xFC
#define X_BASE						0xFD
#define X_UNKNOWN               	0xFE            // unknown
#define X_TEMPLATE					0xFF			// template
#define X_ERROR                 	0x0
#define X_HEADER					0x1				// Header
#define X_VECTOR					0x2				// Vector
#define X_COORDS2D					0x3				// Coords2d
#define X_QUATERNION				0x4				// Quaternion
#define X_MATRIX4X4					0x5				// Matrix4x4
#define X_COLORRGBA					0x6				// ColorRGBA
#define X_COLORRGB					0x7				// ColorRGB
#define X_INDEXEDCOLOR				0x8				// IndexedColor
#define X_BOOLEAN					0x9				// Boolean
#define X_BOOLEAN2D					0xA				// Boolean2d
#define X_MATERIAL					0xB				// Material
#define X_TEXTUREFILENAME			0xC				// TextureFilename
#define X_MESHFACE					0xD				// MeshFace
#define X_MESHFACEWRAPS				0xE				// MeshFaceWraps
#define X_MESHTEXTURECOORDS			0xF				// MeshTextureCoords
#define X_MESHNORMALS				0x10			// MeshNormals 
#define X_MESHVERTEXCOLORS			0x11			// MeshVertexColors
#define X_MESHMATERIALLIST			0x12			// MeshMaterialList
#define X_MESH						0x13			// Mesh
#define X_FRAMETRANSFORMMATRIX		0x14			// FrameTransformMatrix
#define X_FRAME						0x15			// Frame
#define X_FLOATKEYS					0x16			// FloatKeys
#define X_TIMEDFLOATKEYS			0x17			// TimedFloatKeys
#define X_ANIMATIONKEY				0x18			// AnimationKey
#define X_ANIMATIONOPTIONS			0x19			// AnimationOptions
#define X_ANIMATION					0x1A			// Animation
#define X_ANIMATIONSET				0x1B			// AnimationSet
#define X_SKINWEIGHTS           	0x1C            // SkinWeights
#define X_XSKINMESHHEADER       	0x1D            // XSkinMeshHeader
#define X_XOF						0x1E			// xof
#define X_VERTEXDUPLICATIONINDICES	0x1F			// VertexDuplicationIndices
#define	X_EFFECTINSTANCE			0x20			// EffectInstance
#define X_EFFECTPARAMSTRING			0x21			// EffectParamString
#define X_EFFECTPARAMDWORD			0x22			// EffectParamDWord
#define X_EFFECTPARAMFLOATS			0x23			// EffectParamFloats
#define X_PATCH						0x24			// Patch
#define X_PATCHMESH					0x25			// PatchMesh


struct stDefines
{
	int		id;
	char*	name;
};

static stDefines xtxttypes[] =
{
	{  X_TEMPLATE,					"template"					},
	{  X_HEADER,					"Header"					},
	{  X_VECTOR,					"Vector"					},
	{  X_COORDS2D,					"Coords2d"					},
	{  X_QUATERNION,				"Quaternion"				},
	{  X_MATRIX4X4,					"Matrix4x4"					},
	{  X_COLORRGBA,					"ColorRGBA"					},
	{  X_COLORRGB,					"ColorRGB"					},
	{  X_INDEXEDCOLOR,				"IndexedColor"				},
	{  X_BOOLEAN,					"Boolean"					},
	{  X_BOOLEAN2D,					"Boolean2d"					},
	{  X_MATERIAL,					"Material"					},
	{  X_TEXTUREFILENAME,			"TextureFilename"			},
	{  X_MESHFACE,					"MeshFace"					},
	{  X_MESHFACEWRAPS,				"MeshFaceWraps"				},
	{  X_MESHTEXTURECOORDS,			"MeshTextureCoords"			},
	{  X_MESHNORMALS,				"MeshNormals"				},
	{  X_MESHVERTEXCOLORS,			"MeshVertexColors"			},
	{  X_MESHMATERIALLIST,			"MeshMaterialList"			},
	{  X_MESH,						"Mesh"						},
	{  X_FRAMETRANSFORMMATRIX,		"FrameTransformMatrix"		},
	{  X_FRAME,						"Frame"						},
	{  X_FLOATKEYS,					"FloatKeys"					},
	{  X_TIMEDFLOATKEYS,			"TimedFloatKeys"			},
	{  X_ANIMATIONKEY,				"AnimationKey"				},
	{  X_ANIMATIONOPTIONS,			"AnimationOptions"			},
	{  X_ANIMATION,					"Animation"					},
	{  X_ANIMATIONSET,				"AnimationSet"				},
	{  X_SKINWEIGHTS,           	"SkinWeights"           	},
	{  X_XSKINMESHHEADER,       	"XSkinMeshHeader"       	},
	{  X_XOF,						"xof"						},
	{  X_VERTEXDUPLICATIONINDICES,	"VertexDuplicationIndices"	},
	{  X_EFFECTINSTANCE,			"EffectInstance"			},
	{  X_EFFECTPARAMSTRING,			"EffectParamString"			},
	{  X_EFFECTPARAMDWORD,			"EffectParamDWord"			},
	{  X_EFFECTPARAMFLOATS,			"EffectParamFloats"			},
	{  X_PATCH,						"Patch"						},
	{  X_PATCHMESH,					"PatchMesh"					},
};